﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Detail.aspx.cs" Inherits="PhuongDoAn.Detail" %>

<%@ Register Src="UC/register.ascx" TagName="register" TagPrefix="uc1" %>
<%@ Register Src="UC/uc_rating.ascx" TagName="rating" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Blog Film</title>
    <link href="/Theme/Styles/index.css" rel="stylesheet" type="text/css" />
    <script src="/Theme/Scripts/sdmenu.js" type="text/javascript"></script>
    <link href="/Theme/Styles/sdmenu.css" rel="stylesheet" type="text/css" />
    <link href="/Theme/Styles/rating.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
	    // <![CDATA[
        var myMenu;
        window.onload = function () {
            myMenu = new SDMenu("my_menu");
            myMenu.init();
        };
	    // ]]>
    </script>
    <style type="text/css">
        .table1 { background-color: #ccc; }
        .table1 td { background-color: White; padding: 5px; }
        .require { padding-left: 5px; color: Red; }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
    </asp:ScriptManager>
    <center>
        <div class="DivBody">
            <div class="DivBanner">
                <%--Header--%>
                <asp:PlaceHolder ID="plcHeader" runat="server"></asp:PlaceHolder>
            </div>
            <div class="DivSpaceBaner">
            </div>
            <div class="DivSearchBaner">
            </div>
            <div class="DivConten">
                <div class="DivContenLeft">
                    <asp:PlaceHolder ID="plcLeft" runat="server" />
                    <%--Left--%>
                </div>
                <div class="DivContenCenter">
                    <div class="DivContenCenterTitle">
                        Chi tiết phim</div>
                    <div id="main-content">
                        <div id="items" style="background-color: #fff; color: #000;">
                            <asp:Panel runat="server" ID="pnRegister">
                                <table class="table1" width="100%" cellpadding="0" cellspacing="1">
                                    <tr>
                                        <td width="165px" align="right" style="font-weight: bold" class="text">
                                            Tên phim
                                        </td>
                                        <td style="font-weight: bold">
                                            <asp:Literal ID="txtMovieName" runat="server"></asp:Literal>
                                            <asp:HiddenField runat="server" ID="hfId" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" class="text">
                                            Ảnh
                                        </td>
                                        <td>
                                            <asp:Literal ID="ltImage" runat="server"></asp:Literal>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" class="text">
                                            Đạo diễn
                                        </td>
                                        <td>
                                            <a href="#" class="textunderline">
                                                <asp:Literal ID="txtDirector" runat="server"></asp:Literal></a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" class="text">
                                            Năm sản xuất
                                        </td>
                                        <td>
                                            <a href="#" class="textunderline">
                                                <asp:Literal ID="cbYear" runat="server"></asp:Literal></a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" class="text">
                                            Thể loại
                                        </td>
                                        <td>
                                            <a href="#" class="textunderline">
                                                <asp:Literal ID="cbType" runat="server"></asp:Literal></a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" class="text">
                                            Nước sản xuất
                                        </td>
                                        <td>
                                            <a href="#" class="textunderline">
                                                <asp:Literal ID="txtCountry" runat="server"></asp:Literal></a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" class="text">
                                            Diễn viên
                                        </td>
                                        <td>
                                            <asp:Literal ID="ltActor" runat="server"></asp:Literal>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <div style="border: solid 1px red; height: 100px; padding-top: 5px;">
                                                <span class="text fl large">Đánh giá trung bình: </span><span class="fl" style="color: Blue">
                                                    <asp:Literal ID="lblSumRating" runat="server"></asp:Literal></span>
                                                <ajaxToolkit:Rating ID="rDanhGia" runat="server" CssClass="fr" StarCssClass="ratingStar"
                                                    WaitingStarCssClass="savedRatingStar" FilledStarCssClass="filledRatingStar" EmptyStarCssClass="emptyRatingStar"
                                                    MaxRating="5" ReadOnly="true" Style="float: left; margin-right: 4px;">
                                                </ajaxToolkit:Rating>
                                                <div class="clear">
                                                </div>
                                                <span class="text fl large">Đánh giá của bạn: </span>
                                                <ajaxToolkit:Rating ID="rMyRate" runat="server" RatingDirection="LeftToRightTopToBottom"
                                                    CssClass="fr" StarCssClass="ratingStar" WaitingStarCssClass="savedRatingStar"
                                                    FilledStarCssClass="filledRatingStar" EmptyStarCssClass="emptyRatingStar" MaxRating="5"
                                                    CurrentRating='0' Style="float: left; margin-right: 4px;">
                                                </ajaxToolkit:Rating>
                                                <div class="clear">
                                                </div>
                                                <div class="large" style="">
                                                    <asp:DropDownList runat="server" ID="drState" CssClass="fr">
                                                        <asp:ListItem Text="Chưa xem" Value="1"></asp:ListItem>
                                                        <asp:ListItem Text="Đã xem" Value="2"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>
                                                <div class="clear">
                                                </div>
                                                <div class="tc">
                                                    <asp:Button runat="server" ID="btnCapNhat" Text="Cập nhật thay đổi" OnClick="btnCapNhat_Click" />
                                                    <asp:Label runat="server" ID="lblThongBao" Font-Bold="true" ForeColor="Red"></asp:Label>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                                <div class="DivContenCenterTitle">
                                    Đánh giá của người dùng trên website về phim này</div>
                                <table class="table1" width="100%" cellpadding="0" cellspacing="1">
                                    <asp:Repeater runat="server" ID="rptRating">
                                        <ItemTemplate>
                                            <tr>
                                                <td style="width: 120px;">
                                                    <%#Eval("AgeName")%>
                                                </td>
                                                <td>
                                                    <ajaxToolkit:Rating ID="rDanhGia" runat="server" CssClass="fr" StarCssClass="ratingStar"
                                                        WaitingStarCssClass="savedRatingStar" FilledStarCssClass="filledRatingStar" EmptyStarCssClass="emptyRatingStar"
                                                        MaxRating="5" ReadOnly="true" CurrentRating='<%#Eval("AvgRating")%>' Style="float: left;
                                                        margin-right: 4px;">
                                                    </ajaxToolkit:Rating>
                                                </td>
                                                <td style="width: 100px;">
                                                    (<%#Eval("TotalRating")%>
                                                    người)
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </table>
                            </asp:Panel>
                        </div>
                    </div>
                    <%-- Content--%>
                </div>
                <!--Đóng conten-->
                <div class="DivContenRight">
                    <asp:PlaceHolder ID="plcRight" runat="server" />
                    <%--Right--%>
                </div>
            </div>
            <div class="DivBottom">
            </div>
        </div>
    </center>
    </form>
</body>
</html>
